﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin.master" CodeFile="SuperAdminMaster.aspx.cs"
    Inherits="SuperAdminMaster" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cpHead" runat="server">
    <style type="text/css">
        .style1
        {
            width: 101px;
        }
    </style>

    <script type="text/javascript" src="jsDatePick.min.1.3.js"></script>

    <link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />

    <script type="text/javascript">
        window.onload = function () {
         

            new JsDatePick({
                useMode: 2,
                target: "<%=txtDob.ClientID%>",
                dateFormat: "%d-%M-%Y"
            });
          
        };
    </script>

</asp:Content>
<asp:Content ID="content1" ContentPlaceHolderID="cphMainBody" runat="server">
    <%--<asp:ScriptManager ID="ScriptManager2" runat="server">
    </asp:ScriptManager>--%>
    <table width="100%">
        <tr>
            <td valign="bottom" class="leftheading" colspan="2" align="left">
                <img src="images/headingbullet.gif" width="14" height="14">
                SUPER ADMIN MASTER
            </td>
        </tr>
        <tr>
            <td class="leftsectionunderline" colspan="2">
                <img src="images/spacer.gif" width="1" height="1">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1" style="width: 100px">
                Super Admin Name
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtSubAdminName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Email
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtemail" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                Mobile
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtmobile" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
                DOB
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtDob" runat="server"></asp:TextBox>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
                Login ID
            </td>
            <td class="tdstyle">
                <asp:RadioButtonList ID="rbtnLoginId" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Text="Email" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Mobile" Value="2"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
                Password
            </td>
            <td class="tdstyle">
                <asp:TextBox class="txt" ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tdstyle" class="style1">
            </td>
            <td class="tdstyle">
                <asp:Button class="CSSButton" ID="btnsaveSuperAdmininfo" runat="server" Text="Save Super Admin Information"
                    OnClick="btnsaveSuperAdmininfo_Click" />
            </td>
            <td class="tdstyle">
            </td>
        </tr>
        <tr>
            <td class="tdstyle">
            </td>
            <td class="tdstyle">
                <asp:GridView ID="grdSuperAdmin" runat="server" BackColor="White" CssClass="griddiv" CellPadding="4" AutoGenerateColumns="false"
                    ForeColor="Black" GridLines="Horizontal" AllowPaging="True" OnRowCommand="grdSuperAdmin_RowCommand"
                    OnRowDataBound="grdSuperAdmin_RowDataBound">
                    
                    <Columns>
                        <asp:TemplateField ItemStyle-CssClass="griditem" HeaderText="Edit/Delete">
                            <ItemTemplate>
                                <asp:ImageButton ID="lnkEdit" ImageUrl="~\images\Edit.jpg" Height="20px" CommandName="Edt"
                                    CommandArgument='<%# Eval("ID") %>' runat="server" AlternateText="Edit"></asp:ImageButton>
                                <asp:ImageButton ID="lnkDelete" ImageUrl="~\images\delete.jpg" Height="20px" CommandName="Del"
                                    CommandArgument='<%# Eval("ID") %>' runat="server" AlternateText="Delete"></asp:ImageButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="NAME" HeaderText="Super Admin Name" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="LOGIN_ID" HeaderText="Login ID" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="EMAIL" HeaderText="Email " />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="MOBILE" HeaderText="Mobile" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="ROLEID" HeaderText="Role" />
                        <asp:BoundField ItemStyle-CssClass="griditem" DataField="DOB" HeaderText="DOB" />
                    </Columns>
                    <PagerStyle CssClass="pagingstyle" />
                    <SelectedRowStyle  Font-Bold="True"  />
                    <HeaderStyle CssClass="greedhead" Font-Bold="True" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
